function save_email(){
	
	var url = PrivateUrls['CHANGE_EMAIL'];
	$.ajax({
	    url: url,
	    data: {email:$('#email').val()},
	    success: function(response){
	    	if(response.success){
	    		$('#email_edition').modalpop('close');
	    	}
		}
	});
}

function save_website(){
	
	var url = PrivateUrls['CHANGE_WEBSITE'];
	$.ajax({
	    url: url,
	    data: {fieldValue:$('#website').val(),fieldName:'website'},
	    success: function(response){
	    	if(response.success){
	    		$('#website_label').text($('#website').val());
	    		$('#website_edition').modalpop('close');
	    	}
		}
	});
}

function save_facebook(){
	
	var url = PrivateUrls['CHANGE_FACEBOOK'];
	$.ajax({
	    loadingTarget: '#facebook_edition',
		url: url,
	    data: {fieldValue:$('#facebook').val(),fieldName:'facebook'},
	    success: function(response){
	    	if(response.success){
	    		$('#facebook_label').text($('#facebook').val());
	    		$('#facebook_edition').modalpop('close');
	    	}
		}
	});
}

function save_twitter(){
	
	var url = PrivateUrls['CHANGE_TWITTER'];
	$.ajax({
	    url: url,
	    data: {fieldValue:$('#twitter').val(),fieldName:'twitter'},
	    success: function(response){
	    	if(response.success){
	    		$('#twitter_label').text($('#twitter').val());
	    		$('#twitter_edition').modalpop('close');
	    	}
		}
	});
}